import ApiService from '@/services/API-servies'

export const postRegionAction = {
  postRegInfo ({commit, state},callback) {
    ApiService.common.region()
      .then(function (response) {
        commit('GIT_REGION', response.data);
        if(callback) callback();
      })
      .catch(function (error) {
        alert(error);
      });
  },
  setUserType ({commit, state}, data) {
    commit('SET_USERTYPE', data);
  },
  setTransportStatus ({commit, state}, data) {
    commit('SET_TRANSPORTSTATUS', data);
  }
}
